//package team2;
/** CLASS MINIMAX NODE */

import javax.swing.tree.DefaultMutableTreeNode;

/*
 * Class Minimax Node
 * 
 * Stores the goodness value of a potential move.
 */

/**
 *
 * @author Jill Greczek, Julio Montero, Brandon Jarratt
 */
public class MinimaxNode extends DefaultMutableTreeNode
{

	private static final long serialVersionUID = 1L;

	/** Creates an empty node. */
    public MinimaxNode(){goodnessValue = 0;}

    /** Creates a node with the specified value.  */
    public MinimaxNode(int[] nMove, int gValue)
    {
        move = nMove;
        goodnessValue = gValue;
    }

    /** Potential move represented by this node. */
    public int[] move;

    /** Stores the goodness value of the action represented by this node. */
    public int goodnessValue;

    /** Accessor for goodness value */
    public int getGoodnessValue() {return goodnessValue;}
    
    /** Accessor for move */
    public int[] getMove() {return move;}
}
